const data = {
	"fields": [{
			type: "index",
			align: "center",
			width: 120,
			label: "#",
			isQueryField: false,
		},
		// {
		// 	prop: "id",
		// 	label: "ID",
		// 	align: "center",
		// 	width: 120,
		// 	isQueryField: false,
		// },
		{
			prop: "account",
			label: "账号",
			align: "center",
			isQueryField: false,
		},
		{
			prop: "name",
			label: "姓名",
			align: "center",
			isQueryField: true,
			queryOptions: {
				type: "text",
				value: "",
				placeholder: "请输入姓名",
				options:{
					t:"local",
					values:[]
				} // 当type="select"时存在
			}
		},
		{
			prop: "code",
			label: "员工编号",
			align: "center",
			isQueryField: false,
		},
		{
			prop: "phone",
			label: "手机号",
			align: "center",
			isQueryField: false,
		},
		{
			label: "所属部门",
			align: "center",
			isQueryField: false,
			render:(h,params)=>{
				return h('span',{},params.row.department.name)
			}
		},
		{
			slot:'operate',
			isQueryField: false,
		}
		/*
		{
			label: "岗位",
			align: "center",
			isQueryField: false,
			render:(h,params)=>{
				let subs = []
				let jobs = params.row.jobs
				if (Array.isArray(jobs) && jobs.length>0 ) {
					jobs.map(item => {
						subs.push(h('el-tag', {
							style: {
								"marginLeft": "5px",
								"marginRight": "5px"
							},
							attrs: {
								type: "success",
								size: "small"
							}
						}, item.name))
					})
				}
				return h('span',subs)
			}
		}
		 */
	]
}

export default data
